package com.weds.frame.auth.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;
import java.util.List;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2023/3/31 10:24
 */
@ApiModel
@Data
public class ScMenuBusiness {

    private Integer menuBusinessId;
    @ApiModelProperty(value = "业务菜单名", required = true)
    private String menuBusinessName;
    @ApiModelProperty(value = "上级id", required = true)
    private Integer ptMenuBusinessId;
    @ApiModelProperty(value = "关联业务编号", required = true)
    private String businessNo;
    @ApiModelProperty(value = "菜单路由", required = true)
    private String routeUrl;
    @ApiModelProperty(value = "菜单所属客户端", required = true)
    private String client;
    @ApiModelProperty(value = "显示顺序")
    private Integer showOrder;
    @ApiModelProperty(value = "使用状态", required = true)
    private Integer useStatusId;
    @ApiModelProperty(value = "子级菜单数组", required = true)
    private List<ScMenuBusiness> children;
    @ApiModelProperty(value = "选中id数组", required = true)
    private List<Integer> checkedList;

    public List<Integer> getCheckedList() {
        return checkedList;
    }

    public void setCheckedList(List<Integer> checkedList) {
        this.checkedList = checkedList;
    }

    private String remark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp ctDate;

    private Integer ctUserId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")

    private Timestamp ltDate;

    private Integer ltUserId;

    private String version;

    private String icon;

    private String iconActive;

    //下级菜单
    private List<ScMenuBusiness> subMenus;

    //是否展开下级菜单
    private Boolean isSubShow;

    private String configStatus;

    private String homeRouteUrl;

    private Boolean useStatusFlag;
}
